package com.example.springbootthread.sort;

/**
 * (无序)
 * @author : guorf
 * @version : v1.0
 * @description : TODO 线程的顺序，直接调用Thread.start()方法执行不能确保线程的执行顺序
 * @createTime : 2022/7/21 15:41
 */
public class ThreadSort01 {
    public static void main(String[] args) {
        Thread thread1 = new Thread(() -> {
            System.out.println("thread1");
        });
        Thread thread2 = new Thread(() -> {
            System.out.println("thread2");
        });
        Thread thread3 = new Thread(() -> {
            System.out.println("thread3");
        });
        thread1.start();
        thread2.start();
        thread3.start();
    }
}
